package com.sptpc.drink.dao;

import com.sptpc.drink.pojo.Category;

import java.util.List;

public interface CategoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    //根据分类category的名字查询此分类下的所有饮品drink
//    Category selectDrinkByCategoryName(String name);

    //通过名字查看Category
    List<Category> selectCategoryByName(String name);

    //查询所有的Category
    List<Category> selectAllCategory();
}